package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 存储第三方优惠信息
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_third_party_offer")
public class ThirdPartyOffer extends Model<ThirdPartyOffer> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "platform")
    private Integer platform;
    /**
     * 内容
     */
    @TableField("content")
    private String content;
    /**
     * 操作时间
     */
    @TableField("operator_time")
    private LocalDateTime operatorTime;

    public void freeData() {
        this.platform = null;
        this.content = null;
        this.operatorTime = null;
    }

}
